﻿#region imports

using System;
using System.Security.Principal;

#endregion

namespace Codeplex.ODataTFS.Web.Infrastructure
{
	[Serializable]
	public class TfsUser : IIdentity
	{
		public string UserName { get; set; }

		public string Password { get; set; }

		public string Domain { get; set; }

		public string AuthenticationType
		{
			get { return "Custom"; }
		}

		public bool IsAuthenticated
		{
			get { return UserName != null; }
		}

		public string Name
		{
			get { return UserName; }
		}
	}
}
